package com.yawn.demomybatismapper.dao;

import com.yawn.demomybatismapper.entity.Book;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface BookDao extends Mapper<Book> {

    @Select("select * from book")
    List<Book> list();
}
